<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitealbum
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Controller.php 2011-08-026 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitealbum_Widget_SearchAlbumsFormController extends Engine_Content_Widget_Abstract {

  public function indexAction() {
    $search_form = $this->view->search_form = new Album_Form_Search();
    $search_form->setAction($this->view->url(array(), 'album_general', true));
    $sortElement = $search_form->getElement('sort');
    $options = $sortElement
                    ->getMultiOptions();
    $optionsSort = array('' => '');
    $optionsSort = array_merge($optionsSort, $options);
    $sortElement
            ->setMultiOptions($optionsSort);
  }

}
?>